package org.xxpay.pay.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xxpay.apibase.service.IAPISysConfigService;
import org.xxpay.pay.channel.PayConfig;
import org.xxpay.pay.service.CommonService;

@Service
public class APISysConfigServiceImpl implements IAPISysConfigService {

    @Autowired private CommonService commonService;

    @Autowired
    private PayConfig payConfig;


    @Override
    public String querySysConfig(String code) {

        if("certRootPath".equalsIgnoreCase(code)){
            return payConfig.getCertRootPath();
        }

        return null;
    }
}
